package com.augurit.gzcgwsp.excelimportexport.service;

import java.util.List;
import java.util.Map;

import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.hssf.usermodel.HSSFSheet;

import com.augurit.gzcgwsp.excelimportexport.entity.YwRqQyjyxkRqssylb;
import com.augurit.gzcgwsp.rqqyjyxk.entity.YwRqQyjyxkFinalRqssylb;
import com.augurit.gzcgwsp.ssylb.entity.YwRqRqssylb;

/**
 * 广州市燃气经营许可证许可审批------五、1 燃气设施一览表
 * @author xgw
 *
 */
public interface IYwRqQyjyxkRqssylbService {

	/**
	 * 保存 燃气设施一览表
	 * @param ywRqQyjyxkRqssylb
	 */
	public void save(YwRqQyjyxkRqssylb ywRqQyjyxkRqssylb);
	
	/**
	 * 解析 燃气设施一览表
	 * @param hssfsheet
	 * @param acceptNo
	 * @param qyid
	 * @return
	 */
	public YwRqQyjyxkRqssylb parseRqqxsbylb(HSSFSheet hssfsheet,long rqjyxkid,String acceptNo,Long qyid,String username);
	
	public List<YwRqQyjyxkRqssylb> getssList(String acceptNo,Long qyid);
	
	/**
     * 导出 燃气设施一览表
     * 
     * @param hssfsheet
     * @param acceptNo
     * @param qyid
     * @param username
     * @return
     */
    public HSSFSheet expRqqxsbylb(HSSFSheet hssfsheet, String acceptNo,
            Long qyid, String username,HSSFCellStyle cs,Long ajid,String exptype);

    /**
     * 保存最终数据
     * @param finalentity
     * @return
     */
    public Map saveFinalEntity(YwRqQyjyxkFinalRqssylb finalentity);
    /**
     * 保存设施一览表数据
     * @param entity
     * @return
     */
    public void saveEntity(YwRqRqssylb entity);

    /**
     * 根据案件id查询
     * @param id
     * @return
     */
    public List<YwRqRqssylb> getssList(Long ajid);
    
    /**
     * 根据设施类别生成考核文件
     * @param contextPath
     * @return
     */
    public String  createFilePathByContent(String contextPath,String sqdw ,YwRqRqssylb entity);

    /**
     * 根据业务id和名称查找设施一览表
     * @param qyid
     * @param ssmc
     * @return
     */
	public List<YwRqRqssylb> getSsylbByName(Long rqjyxkid, String ssmc);
}
